#!/bin/bash

make
#sleep .5;echo c;|bochs -q;
(
  # The sleeps are necessary in some Bochs to 
  # make it parse each line separately.  Sleeping 
  # here sure beats waiting for the timeout.

  ###############################################
  # add breakpoint at here
  #echo vbreak 0x8:0x$brkaddr
  #echo vbreak 0x8:0xf0103276
  
  ###############################################

  sleep .5
  echo c
# EOF will do just fine to quit.
) | (
  bochs -q
)
